package com.mingmen.canting.model;

import com.ocnyang.cartlayout.bean.ChildItemBean;
import com.ocnyang.cartlayout.bean.GroupItemBean;

import java.util.List;

public class ShoppingCartModel {

    /**
     * code : 0
     * data : [{"applyDataList":[],"ids":[{"data":"1304308368789344256"}],"limitedDate":"2020-09-11-2020-09-12","supDataList":[{"details":[{"applyAmount":18,"applyDetailId":"1304308368818704384","applyId":"1304308368789344256","cancelFlag":"0","categoryId":"101","categoryName":"","commodityId":"1294151127608606720","commodityName":"菠菜","limitDate":"2020-09-12","mark":"","photo":"/uploadimg/2020-08-14/5f3c0f70-ccf1-4ad7-ac9b-55f1803e81f3.jpeg","price":0,"restaurantAddress":"1","shipping":"0","shippingFee":0,"specs":"1","supplierId":"0","supplierName":"","timeSpan":""},{"applyAmount":5,"applyDetailId":"1304308368843870208","applyId":"1304308368789344256","cancelFlag":"0","categoryId":"101","categoryName":"","commodityId":"1294151413366538240","commodityName":"番茄","limitDate":"2020-09-12","mark":"","photo":"/uploadimg/2020-08-14/0c1a1680-c39a-4868-bd5c-d3d876c6825b.jpeg","price":0,"restaurantAddress":"1","shipping":"0","shippingFee":0,"specs":"1","supplierId":"0","supplierName":"","timeSpan":""},{"applyAmount":16,"applyDetailId":"1304308368869036032","applyId":"1304308368789344256","cancelFlag":"0","categoryId":"101","categoryName":"","commodityId":"1294151708419047424","commodityName":"土豆","limitDate":"2020-09-12","mark":"","photo":"/uploadimg/2020-08-14/c221c251-d99c-42dd-8814-372577d0d3d7.jpeg","price":0,"restaurantAddress":"1","shipping":"0","shippingFee":0,"specs":"1","supplierId":"0","supplierName":"","timeSpan":""}],"limitDate":"","supplierId":"0","supplierName":"","timeSpan":""}],"total":0}]
     * message : 操作成功
     * time : 2020-09-11 14:39:10
     */

    private int code;
    private String message;
    private String time;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * applyDataList : []
         * ids : [{"data":"1304308368789344256"}]
         * limitedDate : 2020-09-11-2020-09-12
         * supDataList : [{"details":[{"applyAmount":18,"applyDetailId":"1304308368818704384","applyId":"1304308368789344256","cancelFlag":"0","categoryId":"101","categoryName":"","commodityId":"1294151127608606720","commodityName":"菠菜","limitDate":"2020-09-12","mark":"","photo":"/uploadimg/2020-08-14/5f3c0f70-ccf1-4ad7-ac9b-55f1803e81f3.jpeg","price":0,"restaurantAddress":"1","shipping":"0","shippingFee":0,"specs":"1","supplierId":"0","supplierName":"","timeSpan":""},{"applyAmount":5,"applyDetailId":"1304308368843870208","applyId":"1304308368789344256","cancelFlag":"0","categoryId":"101","categoryName":"","commodityId":"1294151413366538240","commodityName":"番茄","limitDate":"2020-09-12","mark":"","photo":"/uploadimg/2020-08-14/0c1a1680-c39a-4868-bd5c-d3d876c6825b.jpeg","price":0,"restaurantAddress":"1","shipping":"0","shippingFee":0,"specs":"1","supplierId":"0","supplierName":"","timeSpan":""},{"applyAmount":16,"applyDetailId":"1304308368869036032","applyId":"1304308368789344256","cancelFlag":"0","categoryId":"101","categoryName":"","commodityId":"1294151708419047424","commodityName":"土豆","limitDate":"2020-09-12","mark":"","photo":"/uploadimg/2020-08-14/c221c251-d99c-42dd-8814-372577d0d3d7.jpeg","price":0,"restaurantAddress":"1","shipping":"0","shippingFee":0,"specs":"1","supplierId":"0","supplierName":"","timeSpan":""}],"limitDate":"","supplierId":"0","supplierName":"","timeSpan":""}]
         * total : 0
         */

        private String limitedDate;
        private String total;
        private List<?> applyDataList;
        private List<IdsBean> ids;
        private List<SupDataListBean> supDataList;

        public String getLimitedDate() {
            return limitedDate;
        }

        public void setLimitedDate(String limitedDate) {
            this.limitedDate = limitedDate;
        }

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public List<?> getApplyDataList() {
            return applyDataList;
        }

        public void setApplyDataList(List<?> applyDataList) {
            this.applyDataList = applyDataList;
        }

        public List<IdsBean> getIds() {
            return ids;
        }

        public void setIds(List<IdsBean> ids) {
            this.ids = ids;
        }

        public List<SupDataListBean> getSupDataList() {
            return supDataList;
        }

        public void setSupDataList(List<SupDataListBean> supDataList) {
            this.supDataList = supDataList;
        }

        public static class IdsBean {
            /**
             * data : 1304308368789344256
             */

            private String data;

            public String getData() {
                return data;
            }

            public void setData(String data) {
                this.data = data;
            }
        }

        public static class SupDataListBean  extends GroupItemBean {
            /**
             * details : [{"applyAmount":18,"applyDetailId":"1304308368818704384","applyId":"1304308368789344256","cancelFlag":"0","categoryId":"101","categoryName":"","commodityId":"1294151127608606720","commodityName":"菠菜","limitDate":"2020-09-12","mark":"","photo":"/uploadimg/2020-08-14/5f3c0f70-ccf1-4ad7-ac9b-55f1803e81f3.jpeg","price":0,"restaurantAddress":"1","shipping":"0","shippingFee":0,"specs":"1","supplierId":"0","supplierName":"","timeSpan":""},{"applyAmount":5,"applyDetailId":"1304308368843870208","applyId":"1304308368789344256","cancelFlag":"0","categoryId":"101","categoryName":"","commodityId":"1294151413366538240","commodityName":"番茄","limitDate":"2020-09-12","mark":"","photo":"/uploadimg/2020-08-14/0c1a1680-c39a-4868-bd5c-d3d876c6825b.jpeg","price":0,"restaurantAddress":"1","shipping":"0","shippingFee":0,"specs":"1","supplierId":"0","supplierName":"","timeSpan":""},{"applyAmount":16,"applyDetailId":"1304308368869036032","applyId":"1304308368789344256","cancelFlag":"0","categoryId":"101","categoryName":"","commodityId":"1294151708419047424","commodityName":"土豆","limitDate":"2020-09-12","mark":"","photo":"/uploadimg/2020-08-14/c221c251-d99c-42dd-8814-372577d0d3d7.jpeg","price":0,"restaurantAddress":"1","shipping":"0","shippingFee":0,"specs":"1","supplierId":"0","supplierName":"","timeSpan":""}]
             * limitDate :
             * supplierId : 0
             * supplierName :
             * timeSpan :
             */

            private String limitDate;
            private String supplierId;
            private String supplierName;
            private String timeSpan;
            private List<DetailsBean> details;

            public boolean isSelect() {
                return isSelect;
            }

            public void setSelect(boolean select) {
                isSelect = select;
            }

            private boolean isSelect=false;

            public String getLimitDate() {
                return limitDate;
            }

            public void setLimitDate(String limitDate) {
                this.limitDate = limitDate;
            }

            public String getSupplierId() {
                return supplierId;
            }

            public void setSupplierId(String supplierId) {
                this.supplierId = supplierId;
            }

            public String getSupplierName() {
                return supplierName;
            }

            public void setSupplierName(String supplierName) {
                this.supplierName = supplierName;
            }

            public String getTimeSpan() {
                return timeSpan;
            }

            public void setTimeSpan(String timeSpan) {
                this.timeSpan = timeSpan;
            }

            public List<DetailsBean> getDetails() {
                return details;
            }

            public void setDetails(List<DetailsBean> details) {
                this.details = details;
            }

            public static class DetailsBean extends ChildItemBean {
                /**
                 * applyAmount : 18.0
                 * applyDetailId : 1304308368818704384
                 * applyId : 1304308368789344256
                 * cancelFlag : 0
                 * categoryId : 101
                 * categoryName :
                 * commodityId : 1294151127608606720
                 * commodityName : 菠菜
                 * limitDate : 2020-09-12
                 * mark :
                 * photo : /uploadimg/2020-08-14/5f3c0f70-ccf1-4ad7-ac9b-55f1803e81f3.jpeg
                 * price : 0
                 * restaurantAddress : 1
                 * shipping : 0
                 * shippingFee : 0.0
                 * specs : 1
                 * supplierId : 0
                 * supplierName :
                 * timeSpan :
                 */

                private double applyAmount;
                private String applyDetailId;
                private String applyId;
                private String cancelFlag;
                private String categoryId;
                private String categoryName;
                private String commodityId;
                private String commodityName;
                private String limitDate;
                private String mark;
                private String photo;
                private String price;
                private String restaurantAddress;
                private String shipping;
                private double shippingFee;
                private String specs;
                private String supplierId;
                private String supplierName;
                private String timeSpan;

                public boolean isSelect() {
                    return isSelect;
                }

                public void setSelect(boolean select) {
                    isSelect = select;
                }

                public boolean isSelect;

                public double getApplyAmount() {
                    return applyAmount;
                }

                public void setApplyAmount(double applyAmount) {
                    this.applyAmount = applyAmount;
                }

                public String getApplyDetailId() {
                    return applyDetailId;
                }

                public void setApplyDetailId(String applyDetailId) {
                    this.applyDetailId = applyDetailId;
                }

                public String getApplyId() {
                    return applyId;
                }

                public void setApplyId(String applyId) {
                    this.applyId = applyId;
                }

                public String getCancelFlag() {
                    return cancelFlag;
                }

                public void setCancelFlag(String cancelFlag) {
                    this.cancelFlag = cancelFlag;
                }

                public String getCategoryId() {
                    return categoryId;
                }

                public void setCategoryId(String categoryId) {
                    this.categoryId = categoryId;
                }

                public String getCategoryName() {
                    return categoryName;
                }

                public void setCategoryName(String categoryName) {
                    this.categoryName = categoryName;
                }

                public String getCommodityId() {
                    return commodityId;
                }

                public void setCommodityId(String commodityId) {
                    this.commodityId = commodityId;
                }

                public String getCommodityName() {
                    return commodityName;
                }

                public void setCommodityName(String commodityName) {
                    this.commodityName = commodityName;
                }

                public String getLimitDate() {
                    return limitDate;
                }

                public void setLimitDate(String limitDate) {
                    this.limitDate = limitDate;
                }

                public String getMark() {
                    return mark;
                }

                public void setMark(String mark) {
                    this.mark = mark;
                }

                public String getPhoto() {
                    return photo;
                }

                public void setPhoto(String photo) {
                    this.photo = photo;
                }

                public String getPrice() {
                    return price;
                }

                public void setPrice(String price) {
                    this.price = price;
                }

                public String getRestaurantAddress() {
                    return restaurantAddress;
                }

                public void setRestaurantAddress(String restaurantAddress) {
                    this.restaurantAddress = restaurantAddress;
                }

                public String getShipping() {
                    return shipping;
                }

                public void setShipping(String shipping) {
                    this.shipping = shipping;
                }

                public double getShippingFee() {
                    return shippingFee;
                }

                public void setShippingFee(double shippingFee) {
                    this.shippingFee = shippingFee;
                }

                public String getSpecs() {
                    return specs;
                }

                public void setSpecs(String specs) {
                    this.specs = specs;
                }

                public String getSupplierId() {
                    return supplierId;
                }

                public void setSupplierId(String supplierId) {
                    this.supplierId = supplierId;
                }

                public String getSupplierName() {
                    return supplierName;
                }

                public void setSupplierName(String supplierName) {
                    this.supplierName = supplierName;
                }

                public String getTimeSpan() {
                    return timeSpan;
                }

                public void setTimeSpan(String timeSpan) {
                    this.timeSpan = timeSpan;
                }
            }
        }
    }
}
